package org.tinygroup.uiml.metadata;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

/**
 * 预定义样式列表
 * Created by luoguo on 2014/6/30.
 */
@XStreamAlias("styles-type")
public class StylesType {
    /**
     * 所属的平台，只有在所属平台中样式列表中才可以选择对应的样式
     */
	@XStreamAsAttribute
    String platform;

	@XStreamImplicit
    private List<StyleType> styles;

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }


    public List<StyleType> getStyles() {
    	if(styles==null){
    		styles=new ArrayList<StyleType>();
    	}
        return styles;
    }

    public void setStyles(List<StyleType> styles) {
        this.styles = styles;
    }
}
